/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="ATENDIMENTODECORRENTE")
public class AtendimentoDecorrenteProteu implements Serializable{

    @Id
    @Column(name="ATD_IN_CODIGO")
    private Integer atdInCodigo;
    @Column(name="ATD_ST_DESCRICAO")
    private String atdStDescricao;

    public Integer getAtdInCodigo() {
        return atdInCodigo;
    }

    public void setAtdInCodigo(Integer atdInCodigo) {
        this.atdInCodigo = atdInCodigo;
    }

    public String getAtdStDescricao() {
        return atdStDescricao;
    }

    public void setAtdStDescricao(String atdStDescricao) {
        this.atdStDescricao = atdStDescricao;
    }

    
    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final AtendimentoDecorrenteProteu other = (AtendimentoDecorrenteProteu) obj;
        if (this.atdInCodigo != other.atdInCodigo && (this.atdInCodigo == null || !this.atdInCodigo.equals(other.atdInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + (this.atdInCodigo != null ? this.atdInCodigo.hashCode() : 0);
        return hash;
    }



}
